﻿using System;
using System.Web.Security;

public partial class Demos_logout : AdminBasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ltModel.BLL.loginlog lg = new ltModel.BLL.loginlog();
        lg.AddSuccessLog(Request.UserHostAddress, CurrentUser.username, "退出成功");
        FormsAuthentication.SignOut();
        FormsAuthentication.RedirectToLoginPage();
    }
}